package com.mofang.powerdekorhelper.adapter;

import android.content.Context;

import com.mofang.powerdekorhelper.R;
import com.mofang.powerdekorhelper.base.recycleview.BaseRecycleViewAdapter;
import com.mofang.powerdekorhelper.base.recycleview.BaseViewHolder;
import com.mofang.powerdekorhelper.model.CustomerDetail;

import java.util.List;

/**
 * Created by luofei on 2017/9/2 0002.
 * 说明：
 */

public class CommentRecordAdapter extends BaseRecycleViewAdapter {

    public CommentRecordAdapter(List<?> data, Context mContext, int layoutId) {
        super(data, mContext, layoutId);
    }

    @Override
    protected <T> void convert(BaseViewHolder holder, T bean, int position) {

        CustomerDetail.CustomerEvaluate evaluate = (CustomerDetail.CustomerEvaluate) bean;

        holder.setText(R.id.comment_record_time, evaluate.getCreate_time());
        holder.setText(R.id.comment_record_content, evaluate.getContent());
    }
}
